package com.lm.mongo.entry;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@Document(collection = "user")
public class User {
    @Id
    private String id;
    private String name;
    private String sex;
    private Integer salary;
    private int age;
    private String city;
}
